

#ifndef _CE_UI_SCROLL_MSG_H_
#define _CE_UI_SCROLL_MSG_H_

#include "../CEGlobalDef.h"
#include "cocos2d.h"
#include "../../extensions/cocos-ext.h"
#include "../Common/CEIniFile.h"
#include "../../extensions/gui/CCControlExtension/CCControl.h"

USING_NS_CC;
USING_NS_CC_EXT;

#define MAX_SCROLL_MSG_COUNT				(10)
#define MAX_SCROLL_MSG_COUNT_IN_SHOW		(7)

class CEUiScrollMsg : public CCLayer
{
public:
	CEUiScrollMsg();
	~CEUiScrollMsg();

public:
	void						release();
	virtual BOOL				init( const char* pszFile, CCNode* pParent );
	virtual void				show(const char* pStaticSID);
	void						showDirectly(const char* msg);
	virtual void				hide();

protected:
	int							m_nCurMsgIndex;
	CCLabelBMFont*				m_pContent[MAX_SCROLL_MSG_COUNT];
	CCPoint						m_ptPos;
	float						m_fYOffset;
	float						m_fDelayTime;
	float						m_fFadeOutTime;
};

#endif